import {
  getAllDatas
} from '@/services/trainingtutorialApi';

export default {
  namespace: 'trainingtutorial',
  state: {
    data: {
      list: [],
      pagination: {},
    },
  },

  effects: {

    /**
     * 获取所有数据
     * @param payload
     * @param call
     * @param put
     * @returns {Generator<*, *, *>}
     */
    *getAllDatas({ payload }, { call, put }) {
      const response = yield call(getAllDatas, payload);
      return response;
    },
  },

  reducers: {

  },
};
